LIB_DIR = ../../lib

vpath % ${LIB_DIR}

daytimetcpser: daytimetcpser.o daytimelib.o
	gcc $^ -o $@

daytimetcpser.o: daytimetcpser.c
	gcc -c $<

daytimelib.o: daytimelib.c daytimelib.h
	gcc -c $< -I${LIB_DIR}

clean:
	rm -rf *.o
